# # 整型
# # 变量格式: 变量名 = 值
# students = 42
# # python -type()-可以输出变量对应的类型
# print(students)
# print(type(students))
# # float 浮点类型
# reb_package = 0.01
# print(reb_package)
# print(type(reb_package))
#
# bo = True
# bo1 = True
# print(bo)
# print(type(bo1))
#
# # 复数
# com1 = 3+2j
# print(com1)
# print(type(com1))# 查询变量类型的函数
#
# # 字符串
# str = "Hello World"
# print(str)
# print(type(str))
#
# # 获取最后一位字符-java - charAt
# print(str[10])
# print(str[-1])
# #截取从第1位到最后字符
# # str[index,end]:index:从第几位开始截取，end最后截取的终点-end这位不截取
# print(str[1:])
# print(str[:5])
# # 复制相同字符串
# print(str * 3)
# # 拼接字符串 sb-apend()
# str1 = "python"
# print(str1)
# print(str , str1,sep=",")
# # str1 = "p"
# # print(str1,)
# # 多行 关键字 格式化  比较 转换
# import keyword
# print(keyword.kwlist)
#
# str = """
# hello python
# 你好
# """
# print(str,type(str))
#
# hello = '''
# hello
# world
# '''
# print(hello,type(hello))
#
# print("小明今年%d岁，在重庆上学，学校是%s"%(15,"一中"))
#
# # 字符串比较大小：按照顺序从做往右挨个比较大小，如果前面比较谁大，那么字符串就谁大
# str1 = "Abcz"
# str2 = "abce"
# print(str1 > str2)
# # str3 = "你"
# # str4 = "您"
# # print(str3 > str4)
# # print(ord(str3))
# # print(ord(str4))
#
# # 类型转换
# students = "11"
# num = int(students)
# print(students,type(students))
# print(num,type(num))
#
# num1 = float(students)
# print(num1,type(num1))
num = 11.1111111111111111111111111122
print(num,type(num))
str_num = str(num)
print(str_num,type(str_num))

print(len(str_num))

